package org.example.restudying2.util;

import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;

public class test {
    public static void main(String[] args) {
        String s = "123456";
        byte[] bytes = s.getBytes(StandardCharsets.UTF_8);
        s = DigestUtils.md5DigestAsHex(bytes);
        System.out.println(s);
    }
}
